<div  class="<?php echo ($this->isUserLogedIn() ? 'grid_12 alpha' : 'grid_16 alpha omega')?>" id="content">
    <form action="./gallery/edit/<?php echo $this->gallery->id;?>/" method="post">
        <p style="display:<?php  if(isset($_GET['error'])){echo 'block';}else{echo 'none'; }; ?>;color:red;" ><?php echo $_GET['error']; ?></p>
        <div>
            <lable><?php echo $staticText['title'][0];?>:</lable>
            <input name="title" value="<?php echo $this->gallery->title;?>" type="text"/>
        </div>
        <div>
            <lable><?php echo $staticText['description'][0];?>:</lable>
            <textarea cols="25" rows="5" name="description"><?php echo $this->gallery->description; ?></textarea>
        </div>
        <div>
            <lable><?php echo $staticText['format'][0];?>:</lable>
            <input type="radio" value="1" <?php echo ($this->gallery->layout_id == 1 ? 'checked':''); ?> name="layout_id" >
            <input type="radio" value="2" <?php echo ($this->gallery->layout_id == 2 ? 'checked':''); ?> name="layout_id" >
        </div>
        <div>
            <input name="editGallery" type="submit" value="atnaujinti"/>
        </div>
    </form>
</div>

<?php if($this->isUserLogedIn()){?>
<div class="grid_4">
    <div class="box">
        <h2>
            <a id="toggle-list-items" href="#">Veiksmų sąrašas</a>
        </h2>
        <div><div id="list-items" class="block">
                <h5><?php echo $staticText['list_action'][0];?></h5>
                <ul >
                    <li>
                        <a href="./gallery/add/form/" ><?php echo $staticText['new'][0];?></a>
                    </li>
                    <li>
                        <a href="./gallery/list/" ><?php echo $staticText['list'][0];?></a>
                    </li>
                    <li>
                        <a href="./gallery/list/" ><?php echo $staticText['delete'][0];?></a>
                    </li>
                </ul>
                <h5><?php echo $staticText['record_action'][0];?></h5>
                <ul>
                    <li>
                        <a href="./photo/add/form/" ><?php echo $staticText['add'][0];?></a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<?php }?>
